package com.hjxr.quota.define.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.hjxr.quota.define.domain.DimRelation;
import com.hjxr.quota.define.domain.vo.IdNameVo;
import com.hjxr.quota.datasource.domain.QuotaDimension;

import java.util.List;
import java.util.Map;

/**
 * @author ma
 * @version v1.0
 * @date 2020/9/17
 **/
public interface DimRelationService extends IService<DimRelation> {
    /**
     * 插入维度与指标关系表
     * @param parms
     * @return
     */
    Boolean insert(Map<Integer,List<IdNameVo>> parms);

    /**
     * 根据指标id查询维度信息
     * @param id
     * @return
     */
    List<QuotaDimension> queryDim(Integer id);
}
